/*
 * @Author: your name
 * @Date: 2021-07-24 18:21:39
 * @LastEditTime: 2021-07-24 20:11:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hm-news\src\store\modules\user.js
 */
import { setStorageToken, getStorageToken } from '@/utils/storage'
export default {
  namespaced: true,
  state: {
    token: getStorageToken()
  },
  mutations: {
    setToken(state, payload) {
      state.token = payload
      setStorageToken(payload)
    }
  },
  actions: {}
}
